package tij4.concurrent.exercise.ex02;

public class Practice02 implements Runnable{

    private int n = 0;
    public Practice02(int n){
        this.n = n;
    }

    private int fib(int x){
        if(x<2) return 1;
        return fib(x-1) + fib(x-2);
    }

    @Override
    public void run() {
        for (int i = 0; i < n; i++)
            System.out.print(fib(i) + " ");
            System.out.println();

    }
}
